import Films from "@/views/films/Films"
import CS from "@/views/films/ComingSoon"
import NP from "@/views/films/NowPlaying"
// 一个模块下可能有多个路由，因此变量routes格式为数组
const routes = [
     {
        path:"/films",
        component:Films,
        redirect:"/films/nowPlaying",
        children:[
            {
                path:"nowPlaying",
                component:NP,
            },
            {
                path:"comingSoon",
                component:CS,
            }
        ]
  }
 ]

 export default routes